package com.shoukaiseki.test.spring.springbootdemo.service;

import com.shoukaiseki.test.spring.springbootdemo.dao.UsersDao;
import com.shoukaiseki.test.spring.springbootdemo.model.Users;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class UsersService {

    @Resource
    private UsersDao usersDao;

    public int insert(Users pojo){
        return usersDao.insert(pojo);
    }

    public int insertList(List< Users> pojos){
        return usersDao.insertList(pojos);
    }

    public List<Users> select(Users pojo){
        return usersDao.select(pojo);
    }

    public int update(Users pojo){
        return usersDao.update(pojo);
    }

}
